package com.zretc.dao;

import com.zretc.entity.EmployeeMove;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author wukai
 * @date 08-20
 */
@Repository
@Mapper
public interface EmployeeMoveMapper {
    /**
     * 查询所有的调动记录
     * @return
     */
    List<Map<String,Object>> findAll();

    /**
     * 根据调动记录的序号删除
     * @param id 序号
     * @return
     */
    Integer deleteSingle(Integer id);

    /**
     * 插入员工调动记录
     * @param employeeMove
     * @return
     */
    Integer insertSingle(EmployeeMove employeeMove);
    /**
     * 更新员工调动记录
     * @param employeeMove
     * @return
     */
    Integer updateSingle(EmployeeMove employeeMove);

}
